package com.qdsg.modulesihealsdk.entity;

import java.io.Serializable;

/**
 * @Description
 * @Author WuJianFeng
 * @Date 2022/11/23 9:53
 */

public class IdCardBean implements Serializable {
     //姓名
    private String name;
     //性别
    private String gender;
     //民族
    private String group;
     //出生日期
    private String born;
     //住址
    private String address;
     //身份证号
    private String idNumber;
     //有效期限起始时间
    private String startDate;
     //有效期限截止时间
    private String endDate;
     //签发机关
    private String issueAuthority;
     //德卡读取的身份证数据后面一长串字符串
    private String keyString;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getBorn() {
        return born;
    }

    public void setBorn(String born) {
        this.born = born;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getIssueAuthority() {
        return issueAuthority;
    }

    public void setIssueAuthority(String issueAuthority) {
        this.issueAuthority = issueAuthority;
    }

    public String getKeyString() {
        return keyString;
    }

    public void setKeyString(String keyString) {
        this.keyString = keyString;
    }

    @Override
    public String toString() {
        return "{\"name\":\"" + name + "\"" +
                ",\"gender\":\"" + gender + "\"" +
                ",\"group\":\"" + group + "\"" +
                ",\"born\":\"" + born + "\"" +
                ",\"address\":\"" + address + "\"" +
                ",\"idNumber\":\"" + idNumber + "\"" +
                ",\"startDate\":\"" + startDate + "\"" +
                ",\"endDate\":\"" + endDate + "\"" +
                ",\"issueAuthority\":\"" + issueAuthority + "\"" +
                ",\"keyString\":\"" + keyString + "\"}";

    }

    public void clearData(){
        setName("");
        setGender("");
        setGroup("");
        setBorn("");
        setAddress("");
        setIdNumber("");
        setStartDate("");
        setEndDate("");
        setIssueAuthority("");
        setKeyString("");
    }
}

